package cn.lbd.api.designMode.adapterpattern;


import cn.lbd.api.designMode.adapterpattern.adapter.Adapter;

/**客户端类：想上网，找不到网线  目标接口**/
public class Computer {
    public void net(NetToUsb netToUsb){
        netToUsb.handlerRequest();
    }

    public static void main(String[] args) {
        Computer computer=new Computer();
        Reticle reticle=new Reticle();
        NetToUsb netToUsb=new Adapter(reticle);
        computer.net(netToUsb);
    }
}
